package OceanWorld2;

/**
 * Created by pc on 3/31/16.
 */
public class Seaplane extends Airplane implements Swimmer, Flyer {
    private String name;

    public Seaplane(String name) {
        super(name);
    }

    @Override
    public void fly() {
        System.out.print("sea");
        super.fly();
    }

    @Override
    public void swim() {
        System.out.printf("seaplane %s is sailing%n", name);
    }

}
